package com.xiaoluo.lottery.request;

import java.util.Date;

/**
 * Created by Caedmon on 2016/4/5.
 */
public class CreateRoundRequest {
    private String createPlayerOpenId;
    /**类型 0 默认*/
    private GameType gameType;
    /**总金额*/
    private double singleAmount;
    /**需要满足人数*/
    private int num;
    /**过期时间*/
    private Date expiredTime;
    /**名称*/
    private String name;
    /**物品ID*/
    private long itemId;
    /**ip地址*/
    private String ip;
    public String getCreatePlayerOpenId() {
        return createPlayerOpenId;
    }

    public void setCreatePlayerOpenId(String createPlayerOpenId) {
        this.createPlayerOpenId = createPlayerOpenId;
    }

    public GameType getGameType() {
        return gameType;
    }
    public void setGameType(GameType gameType) {
        this.gameType = gameType;
    }

    public double getSingleAmount() {
        return singleAmount;
    }

    public void setSingleAmount(double singleAmount) {
        this.singleAmount = singleAmount;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getItemId() {
        return itemId;
    }

    public void setItemId(long itemId) {
        this.itemId = itemId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public enum GameType{
        CREATE_BY_PLAYER(0);
        public int value;
        GameType(int value){
            this.value=value;
        }
        public static GameType valueOf(int value){
            switch (value){
                case 0:
                    return CREATE_BY_PLAYER;
                default:
                    throw new IllegalArgumentException();
            }
        }
    }
}
